﻿using System.Collections.Generic;
using ZilLion.Core.ConfigManager.Attribute;
using ZilLion.Core.ConfigManager.Provider;

namespace ZilLion.Core.ConfigManager.Cache
{
    [ConfigurationArgument(typeof(SysConfig), typeof(SysConfigProvider))]
    public class SysConfig
    {
        internal readonly IDictionary<string, string> AppSetting = new Dictionary<string, string>();

        public string GetAppSetting(string key)
        {
            return AppSetting.ContainsKey(key.ToLower()) ? AppSetting[key.ToLower()] : string.Empty;
        }
    }
}